-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long instance names use ellipsis when overflowed in menu item #26955
base: master
Are you sure you want to change the base?
Long instance names use ellipsis when overflowed in menu item #26955
Conversation
Hello @Aryakoste, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Not triggering E2E tests: this PR has 1 commit status(es) or check-runs that are not passing. Ensure all statuses aside from the E2E testing ones are green, before triggering E2E tests. |
@@ -34,7 +34,7 @@ export default function menuItem(Component: React.ComponentType<any>) { | |||
textProp = ( | |||
<> | |||
<span className='icon'>{icon}</span> | |||
{text} | |||
<div className='text'>{text}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only wraps the text if there is an icon. If there is no icon, it would still fail to show the ellipsis, since the style is only applied to the div.
Is that intended?
Summary
When text in menu item overflows it will show ellipsis instead of overflowing outsite the container.
Ticket Link
Fixes #26863
Jira https://mattermost.atlassian.net/browse/MM-57900
Screenshots
Release Note